package smashedapples.google.language
{
	public class LangPairVO
	{
		public function LangPairVO(fromLang:LanguageVO=null,toLang:LanguageVO=null)
		{
			
			if(fromLang != null)
				this.fromLang = fromLang;
				
			if(toLang != null)	
				this.toLang = toLang;
		}
		
		public var fromLang : LanguageVO;
		public var toLang : LanguageVO;
	
		public function get value():String
		{
			return fromLang.langCode + "|" + toLang.langCode;
		} 
		
		public function get label():String
		{
			return fromLang.label + " to " + toLang.label;
		} 


	}
}